package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "voice")
public class Voice implements Serializable {

    private static final long serialVersionUID = -5699668057949409269L;

    private ObjectId id; //主键id
    private Long vid; //自增长id
    private Long userId; //发布者的id
    private String gender; //发布者性别
    private String voiceUrl; //音频文件
    private Long created; //创建时间
}
